package com.example.mapper;

import com.example.pojo.ForumReply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-08-20
 */
@Mapper
public interface ForumReplyMapper extends BaseMapper<ForumReply> {
    List<ForumReply> selectByTid(@Param("tid") Integer tid);

    ForumReply selectByRid(@Param("rid") Integer rid);

    List<ForumReply> getPage(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize, @Param("tid") Integer tid);
}
